Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
ATL ActiveX Control Event not firing in IE?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark  
View profile  
 More options Aug 2 2001, 9:51 am
Newsgroups: microsoft.public.vc.atl
From: "Mark" <a...@xyz.com>
Date: Thu, 2 Aug 2001 09:48:00 -0400
Subject: ATL ActiveX Control Event not firing in IE?
I have an ActiveX ATL "Lite Composite Control" developed in MSVC with SP6.
It has a "Change" event which works correctly when the control is used on a
Visual Basic form.  It even works when I create the object dynamically in VB
using a "VBControlExtender".  However, it does not seem to "fire" when the
control is used in IE (<OBJECT>).  Similar events for other ActiveX controls
(i.e. listview) work correctly.

Any ideas what might not be working?

Thanks!!
Mark


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chetan N Parmar  
View profile  
 More options Aug 2 2001, 5:04 pm
Newsgroups: microsoft.public.vc.atl
From: parmar-DONTS...@msft.com (Chetan N Parmar)
Date: Thu, 02 Aug 2001 20:54:04 GMT
Local: Thurs, Aug 2 2001 4:54 pm
Subject: RE: ATL ActiveX Control Event not firing in IE?
HI MArk,
  An ActiveX control must implement the IProvideClassInfo or
IProvideClassInfo2 interface to enable event handling on a Web page. IE
uses this interface to obtain the type library for the control and
determine the available event set. When using theATL, the following 'lite
control' ATL objects do not implement the IProvideClassInfo2 interface by
default:

 - Simple Object

 - Internet Explorer Object

 - Lite Control

 - Lite Composite Control

 - Lite HTML Control

You can easily add support for event handling by implementing the
IProvideClassInfo interfaces. This is done by deriving your control from the
default ATL implementation, IProvideClassInfo2Impl.
1. Add the following line to your class derivation list:

      public IProvideClassInfo2Impl<&CLSID_<object_name>, NULL,
                                    &LIBID_<project_name>Lib>

2. Add the following lines to your COM_MAP:

      COM_INTERFACE_ENTRY(IProvideClassInfo)
      COM_INTERFACE_ENTRY(IProvideClassInfo2)

Hope that helps. For additional information you can take a look at KB
Q200839

Regards
Chetan N Parmar
Microsoft


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark  
View profile  
 More options Aug 2 2001, 6:22 pm
Newsgroups: microsoft.public.vc.atl
From: "Mark" <a...@xyz.com>
Date: Thu, 2 Aug 2001 18:21:57 -0400
Local: Thurs, Aug 2 2001 6:21 pm
Subject: Re: ATL ActiveX Control Event not firing in IE?
EXCELLENT!!

Thanks for the help...easy fix!

Mark

"Chetan N Parmar" <parmar-DONTS...@msft.com> wrote in message
news:SyL1rV5GBHA.251@cppssbbsa01.microsoft.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google